package com.soft.line.mapper;

import com.soft.line.entity.MenuButtonInfo;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MenuButtonInfoMapper {

    int insert(MenuButtonInfo record);

    int deleteByMenuIdAndButtonId(@Param("menuId") int menuId,@Param("buttonId") String buttonId);

    int deleteByMenuId(@Param("menuId") int menuId);

    MenuButtonInfo selectByPrimaryKey(Integer id);

    List<MenuButtonInfo> selectAll();

    List<String> selectButtonIdByMenuId(Integer menuId);
}